package com.letao.server.controller;

import com.letao.server.dto.AdminFormDTO;
import com.letao.server.dto.Result;
import com.letao.server.service.IAdminService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin")
public class AdminController {

    @Resource
    IAdminService adminService;

    @PostMapping("/login")
    private Result login(@RequestBody AdminFormDTO form) {
        return adminService.login(form);
//        return Result.success();
    }

    @GetMapping("/test")
    private Result test() {
        return Result.success();
    }


}
